﻿using System;

namespace SolidQ.CommonLibraries.GestionErrores
{
    /// <summary>
    /// Enrique Catala Bañuls [08-07-2009]
    /// Enrique Catala Bañuls: for now, i don´t use SolidQException but i will do it
    /// </summary>
    [Serializable]
    public class InputDataException:System.Exception
    {
        private string _textoCorto;
        private string _textoLargo;

        public string TextoCorto
        {
            get { return (_textoCorto); }
        }
        public string TextoLargo
        {
            get { return (_textoLargo); }
        }

        public InputDataException() { }
        public InputDataException(string textoLargo)
        {
            _textoLargo = textoLargo;
        }
        public InputDataException(string textoLargo, System.Exception inner) { _textoLargo = textoLargo; }

        // Constructor needed for serialization 
        // when exception propagates from a remoting server to the client.
        protected InputDataException(System.Runtime.Serialization.SerializationInfo info,
            System.Runtime.Serialization.StreamingContext context) { }

        public InputDataException(string textoCorto, string textoLargo)
        {
            _textoCorto = textoCorto;
            _textoLargo = textoLargo;
        }
    }
}
